<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>添加投票选项</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  <link rel="stylesheet" href="css/vote_css.css" type="text/css"></link>
  <script type="text/javascript" src="js/WebCalendar.js"></script>
  <script type="text/javascript" src="js/votejs.js"></script>
  
  <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script></head>
  
  <body>
		<div class="top">
    			&nbsp;<img src="images/index_32.gif"></img>&nbsp;添加新投票
    	</div>
		<div id="vote_main">
		<form action="../addVote" method="post">
			<table width="95%" cellpadding="0" cellspacing="0">
				  <tr>
				   <td class="td_01">&nbsp;标&nbsp;&nbsp;&nbsp;&nbsp;题：</td>
				    <td class="td_01">
				    	<input name="voteName" id="voteNameId" type="text" size="51" onfocus="divNone('title')" onblur="validate1()" />
				    	<div id="title"></div>
				    </td>
				   </tr>
				   <tr>
				    <td class="td_01">&nbsp;投票内容：</td>
				    <td class="td_01">
				    	<textarea name="voteContent" id="contentId" rows="10" cols="50" style="clear: both;" onfocus="divNone('content')" onblur="validate2()"></textarea>
				    	<div id="content"></div>
				    </td>				   
				  </tr>
				  <tr>
				   <td class="td_01">&nbsp;开始时间：</td>
				    <td class="td_01">
				    <input id="d5221" name="startDate" class="Wdate" type="text" onfocus="var d5222=$dp.$('d5222');WdatePicker({onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'});" readonly="readonly" />
				    	<div id="startTime"></div>
				    </td>
				   
				   </tr>
				   <tr>
				    <td class="td_01">&nbsp;结束时间：</td>
				    <td class="td_01">
				    	<input id="d5222" name="endDate" class="Wdate" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'d5221\')}'});" readonly="readonly"/>
				    	<div id="endTime"></div>
				    </td>
				    			   
				  </tr>
				  <tr>
				    <td class="td_01" colspan="3">
						<input type="submit" value="提交" class="buttonface02" onclick="return valiedate()">
						<input type="reset" value="清空" class="buttonface02">
						<input type="button" value="返回" onclick="location.href='voteList'" class="buttonface02">
					</td>				   			   
				  </tr>
			</table>
			</form>
		</div>
		
  </body>
</html>
